<!-- HTML header for doxygen 1.8.9.1-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>ROSS: core/network-mpi.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <a href="https://github.com/ROSS-org/ROSS">
   <div id="projectname">ROSS
   </div>
   </a>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_af18cf245e3394ab3b436135935cfd6e.html">core</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">network-mpi.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="network-mpi_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="preprocessor">#ifndef INC_network_mpi_h</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="preprocessor"></span><span class="preprocessor">#define INC_network_mpi_h</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="preprocessor"></span></div>
<div class="line"><a name="l00004"></a><span class="lineno"><a class="line" href="network-mpi_8h.html#aeaa3293f28d6ae6ecb9a8af470a392e2">    4</a></span>&#160;<span class="keyword">typedef</span> <span class="keywordtype">long</span> <a class="code" href="network-mpi_8h.html#aeaa3293f28d6ae6ecb9a8af470a392e2">tw_node</a>;</div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;</div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="keyword">extern</span> MPI_Comm <a class="code" href="network-mpi_8h.html#af1faeba2bc478835b35af43287f19ba7">MPI_COMM_ROSS</a>;</div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * @brief Initalize the network library and parse options.</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * argc and argv are pointers to the original command line; the</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * network library may edit these before the option parser sees</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> * them allowing for network implementation specific argument</span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * handling to occur.</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * It&#39;s possible for a model to init MPI itself, as this</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * function will first check if MPI is already initialized before</span></div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * attempting to call MPI_Init().</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * This function also sets the global variables</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * g_tw_masternode and g_tw_mynode.</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> * @param[in] argc Pointer to command line arg count</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> * @param[in] argv Pointer to command line args</span></div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> * @return tw_optdef array to be included in overall process</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> * command line argument display and parsing; NULL may be returned</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> * to indicate the implementation has no options it wants included.</span></div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">const</span> <a class="code" href="structtw__optdef.html">tw_optdef</a> *<a class="code" href="network-mpi_8h.html#a3db61a41bb6a85964e22e5488038b02e">tw_net_init</a>(<span class="keywordtype">int</span> *argc, <span class="keywordtype">char</span> ***argv);</div>
<div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="comment"> * @brief Setup the MPI_COMM_ROSS communicator to use instead of MPI_COMM_WORLD.</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment"> * This function should be called before tw_net_init.</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="comment"> * @param[in] comm Custom MPI communicator for setting MPI_COMM_ROSS</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="keywordtype">void</span> <a class="code" href="network-mpi_8h.html#aea8ec44102f611b89ed0ad9f4015cd97">tw_comm_set</a>(MPI_Comm comm);</div>
<div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="comment"> * @brief Starts the network library after option parsing.</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="comment"> * Makes calls to initialize the PE (g_tw_pe), create the hash/AVL tree</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="comment"> * (for optimistic modes), and queues for posted sends/recvs.</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="comment"> * Also pre-posts MPI Irecvs operations.</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="keywordtype">void</span> <a class="code" href="network-mpi_8h.html#a625a50a6a03701b067693d7dc5ed483b">tw_net_start</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="comment"> * @brief Stops the network library after simulation end.</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="comment"> * Checks to see if custom communicator was used. If not, finalizes MPI.</span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="comment"> * Otherwise, the application is expected to finalize MPI itself.</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;<span class="keywordtype">void</span> <a class="code" href="network-mpi_8h.html#a753856a718a9881f642523034260d3f9">tw_net_stop</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="comment">/** Aborts the entire simulation when a grave error is found. */</span></div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;<span class="keywordtype">void</span> <a class="code" href="network-mpi_8h.html#a53b310206267d968fc44cb574de00d80">tw_net_abort</a>(<span class="keywordtype">void</span>) <a class="code" href="ross_8h.html#aa1728270d73c5d1598de1fd691762eb1">NORETURN</a>;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="comment"> * @brief starts service_queues() to poll network</span></div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;<span class="comment"> * @param[in] me pointer to the PE</span></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;extern <span class="keywordtype">void</span> <a class="code" href="network-mpi_8h.html#a29c8b71c5bbcfa0c7a30fc31769be05e">tw_net_read</a>(<a class="code" href="structtw__pe.html">tw_pe</a> *);</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="comment"> * @brief Adds the event to the outgoing queue of events to be sent,</span></div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<span class="comment"> * polls for finished sends, and attempts to start sends from outq.</span></div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="comment"> * @param[in] e remote event to be sent</span></div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;extern <span class="keywordtype">void</span> <a class="code" href="network-mpi_8h.html#a6392a492117a07ef4a834aff3e36ec33">tw_net_send</a>(<a class="code" href="structtw__event.html">tw_event</a> *);</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="comment"> * @brief Cancel the given remote event by either removing from the outq</span></div>
<div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;<span class="comment"> * or sending an antimessage, depending on the status of the original positive send.</span></div>
<div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="comment"> * @param[in] e remote event to be canceled</span></div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;extern <span class="keywordtype">void</span> <a class="code" href="network-mpi_8h.html#a0f32f17f307a059cd2464da4039729fb">tw_net_cancel</a>(tw_event *);</div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="comment">/** Obtain the total number of PEs executing the simulation.</span></div>
<div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;<span class="comment"> * @return number of ROSS PEs/MPI world size</span></div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;extern <span class="keywordtype">unsigned</span> <a class="code" href="network-mpi_8h.html#ab1ceb0df9f08e70f7e008dcc24adb425">tw_nnodes</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;<span class="comment">/** Block until all nodes call the barrier. */</span></div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;extern <span class="keywordtype">void</span> <a class="code" href="network-mpi_8h.html#ad2d1779a485bde77b7b62876a9ff6e25">tw_net_barrier</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="comment"> * @brief Obtain the lowest timestamp inside the network buffers.</span></div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="comment"> * @return minimum timestamp for this PE&#39;s network buffers</span></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;extern <a class="code" href="ross_8h.html#a80b370bc538e17441aef6afaff852678">tw_stime</a> <a class="code" href="network-mpi_8h.html#aad791cc8b066ed3cb37912b131b06b00">tw_net_minimum</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;<span class="comment">/**</span></div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;<span class="comment"> * @brief Function to reduce all the statistics for output.</span></div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;<span class="comment"> * @attention Notice that the MPI_Reduce &quot;count&quot; parameter is greater than one.</span></div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;<span class="comment"> * We are reducing on multiple variables *simultaneously* so if you change</span></div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="comment"> * this function or the struct tw_statistics, you must update the other.</span></div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="comment"> **/</span></div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;extern <a class="code" href="structtw__statistics.html">tw_statistics</a> *<a class="code" href="network-mpi_8h.html#a37113c2afb3c223fcfb4a794df50c432">tw_net_statistics</a>(tw_pe *, <a class="code" href="structtw__statistics.html">tw_statistics</a> *);</div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="ttc" id="ross_8h_html_a80b370bc538e17441aef6afaff852678"><div class="ttname"><a href="ross_8h.html#a80b370bc538e17441aef6afaff852678">tw_stime</a></div><div class="ttdeci">double tw_stime</div><div class="ttdef"><b>Definition:</b> <a href="ross_8h_source.html#l00150">ross.h:150</a></div></div>
<div class="ttc" id="network-mpi_8h_html_a29c8b71c5bbcfa0c7a30fc31769be05e"><div class="ttname"><a href="network-mpi_8h.html#a29c8b71c5bbcfa0c7a30fc31769be05e">tw_net_read</a></div><div class="ttdeci">void tw_net_read(tw_pe *)</div><div class="ttdoc">starts service_queues() to poll network </div><div class="ttdef"><b>Definition:</b> <a href="network-mpi_8c_source.html#l00572">network-mpi.c:572</a></div></div>
<div class="ttc" id="structtw__pe_html"><div class="ttname"><a href="structtw__pe.html">tw_pe</a></div><div class="ttdoc">Holds the entire PE state. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00375">ross-types.h:375</a></div></div>
<div class="ttc" id="network-mpi_8h_html_ad2d1779a485bde77b7b62876a9ff6e25"><div class="ttname"><a href="network-mpi_8h.html#ad2d1779a485bde77b7b62876a9ff6e25">tw_net_barrier</a></div><div class="ttdeci">void tw_net_barrier(void)</div><div class="ttdef"><b>Definition:</b> <a href="network-mpi_8c_source.html#l00175">network-mpi.c:175</a></div></div>
<div class="ttc" id="network-mpi_8h_html_aad791cc8b066ed3cb37912b131b06b00"><div class="ttname"><a href="network-mpi_8h.html#aad791cc8b066ed3cb37912b131b06b00">tw_net_minimum</a></div><div class="ttdeci">tw_stime tw_net_minimum(void)</div><div class="ttdoc">Obtain the lowest timestamp inside the network buffers. </div><div class="ttdef"><b>Definition:</b> <a href="network-mpi_8c_source.html#l00182">network-mpi.c:182</a></div></div>
<div class="ttc" id="structtw__optdef_html"><div class="ttname"><a href="structtw__optdef.html">tw_optdef</a></div><div class="ttdef"><b>Definition:</b> <a href="tw-opts_8h_source.html#l00019">tw-opts.h:19</a></div></div>
<div class="ttc" id="network-mpi_8h_html_a53b310206267d968fc44cb574de00d80"><div class="ttname"><a href="network-mpi_8h.html#a53b310206267d968fc44cb574de00d80">tw_net_abort</a></div><div class="ttdeci">void tw_net_abort(void) NORETURN</div><div class="ttdef"><b>Definition:</b> <a href="network-mpi_8c_source.html#l00147">network-mpi.c:147</a></div></div>
<div class="ttc" id="network-mpi_8h_html_aeaa3293f28d6ae6ecb9a8af470a392e2"><div class="ttname"><a href="network-mpi_8h.html#aeaa3293f28d6ae6ecb9a8af470a392e2">tw_node</a></div><div class="ttdeci">long tw_node</div><div class="ttdef"><b>Definition:</b> <a href="network-mpi_8h_source.html#l00004">network-mpi.h:4</a></div></div>
<div class="ttc" id="structtw__statistics_html"><div class="ttname"><a href="structtw__statistics.html">tw_statistics</a></div><div class="ttdoc">Statistics tallied over the duration of the simulation. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00107">ross-types.h:107</a></div></div>
<div class="ttc" id="network-mpi_8h_html_a3db61a41bb6a85964e22e5488038b02e"><div class="ttname"><a href="network-mpi_8h.html#a3db61a41bb6a85964e22e5488038b02e">tw_net_init</a></div><div class="ttdeci">const tw_optdef * tw_net_init(int *argc, char ***argv)</div><div class="ttdoc">Initalize the network library and parse options. </div><div class="ttdef"><b>Definition:</b> <a href="network-mpi_8c_source.html#l00066">network-mpi.c:66</a></div></div>
<div class="ttc" id="structtw__event_html"><div class="ttname"><a href="structtw__event.html">tw_event</a></div><div class="ttdoc">Event Stucture. </div><div class="ttdef"><b>Definition:</b> <a href="ross-types_8h_source.html#l00250">ross-types.h:250</a></div></div>
<div class="ttc" id="network-mpi_8h_html_aea8ec44102f611b89ed0ad9f4015cd97"><div class="ttname"><a href="network-mpi_8h.html#aea8ec44102f611b89ed0ad9f4015cd97">tw_comm_set</a></div><div class="ttdeci">void tw_comm_set(MPI_Comm comm)</div><div class="ttdoc">Setup the MPI_COMM_ROSS communicator to use instead of MPI_COMM_WORLD. </div><div class="ttdef"><b>Definition:</b> <a href="network-mpi_8c_source.html#l00059">network-mpi.c:59</a></div></div>
<div class="ttc" id="network-mpi_8h_html_a6392a492117a07ef4a834aff3e36ec33"><div class="ttname"><a href="network-mpi_8h.html#a6392a492117a07ef4a834aff3e36ec33">tw_net_send</a></div><div class="ttdeci">void tw_net_send(tw_event *)</div><div class="ttdoc">Adds the event to the outgoing queue of events to be sent, polls for finished sends, and attempts to start sends from outq. </div><div class="ttdef"><b>Definition:</b> <a href="network-mpi_8c_source.html#l00578">network-mpi.c:578</a></div></div>
<div class="ttc" id="network-mpi_8h_html_ab1ceb0df9f08e70f7e008dcc24adb425"><div class="ttname"><a href="network-mpi_8h.html#ab1ceb0df9f08e70f7e008dcc24adb425">tw_nnodes</a></div><div class="ttdeci">unsigned tw_nnodes(void)</div><div class="ttdef"><b>Definition:</b> <a href="network-mpi_8c_source.html#l00103">network-mpi.c:103</a></div></div>
<div class="ttc" id="ross_8h_html_aa1728270d73c5d1598de1fd691762eb1"><div class="ttname"><a href="ross_8h.html#aa1728270d73c5d1598de1fd691762eb1">NORETURN</a></div><div class="ttdeci">#define NORETURN</div><div class="ttdef"><b>Definition:</b> <a href="ross_8h_source.html#l00094">ross.h:94</a></div></div>
<div class="ttc" id="network-mpi_8h_html_a37113c2afb3c223fcfb4a794df50c432"><div class="ttname"><a href="network-mpi_8h.html#a37113c2afb3c223fcfb4a794df50c432">tw_net_statistics</a></div><div class="ttdeci">tw_statistics * tw_net_statistics(tw_pe *, tw_statistics *)</div><div class="ttdoc">Function to reduce all the statistics for output. </div><div class="ttdef"><b>Definition:</b> <a href="network-mpi_8c_source.html#l00656">network-mpi.c:656</a></div></div>
<div class="ttc" id="network-mpi_8h_html_a625a50a6a03701b067693d7dc5ed483b"><div class="ttname"><a href="network-mpi_8h.html#a625a50a6a03701b067693d7dc5ed483b">tw_net_start</a></div><div class="ttdeci">void tw_net_start(void)</div><div class="ttdoc">Starts the network library after option parsing. </div><div class="ttdef"><b>Definition:</b> <a href="network-mpi_8c_source.html#l00109">network-mpi.c:109</a></div></div>
<div class="ttc" id="network-mpi_8h_html_af1faeba2bc478835b35af43287f19ba7"><div class="ttname"><a href="network-mpi_8h.html#af1faeba2bc478835b35af43287f19ba7">MPI_COMM_ROSS</a></div><div class="ttdeci">MPI_Comm MPI_COMM_ROSS</div><div class="ttdef"><b>Definition:</b> <a href="network-mpi_8c_source.html#l00004">network-mpi.c:4</a></div></div>
<div class="ttc" id="network-mpi_8h_html_a753856a718a9881f642523034260d3f9"><div class="ttname"><a href="network-mpi_8h.html#a753856a718a9881f642523034260d3f9">tw_net_stop</a></div><div class="ttdeci">void tw_net_stop(void)</div><div class="ttdoc">Stops the network library after simulation end. </div><div class="ttdef"><b>Definition:</b> <a href="network-mpi_8c_source.html#l00154">network-mpi.c:154</a></div></div>
<div class="ttc" id="network-mpi_8h_html_a0f32f17f307a059cd2464da4039729fb"><div class="ttname"><a href="network-mpi_8h.html#a0f32f17f307a059cd2464da4039729fb">tw_net_cancel</a></div><div class="ttdeci">void tw_net_cancel(tw_event *)</div><div class="ttdoc">Cancel the given remote event by either removing from the outq or sending an antimessage, depending on the status of the original positive send. </div><div class="ttdef"><b>Definition:</b> <a href="network-mpi_8c_source.html#l00595">network-mpi.c:595</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
